/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2023-10-03     FuLei       the first version
 */
#ifndef MCU_HW_MYPWM_H_
#define MCU_HW_MYPWM_H_

#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>

#define PWM4_CH1        1

int PWM1_Init(void);
void PWM1_CH1_Set(rt_uint32_t period,rt_uint32_t pulse,FunctionalState state);
void PWM1_CLOSE(void);

int PWM2_Init(void);
void PWM2_CH2_Set(rt_uint32_t period,rt_uint32_t pulse,FunctionalState state);

int PWM4_Init(void);
void PWM4_CH4_Set(rt_uint32_t period,rt_uint32_t pulse,FunctionalState state);



#endif /* MCU_HW_MYPWM_H_ */
